package com.ssy.lingxi.fallback;

import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.dto.request.ApplyAmountDetailSunQueryVO;
import com.ssy.lingxi.dto.request.ApplyAmountDetailTotalSunQueryVO;
import com.ssy.lingxi.dto.request.ApplyAmountSunQueryVO;
import com.ssy.lingxi.dto.response.ApplyAmountDetailSunVO;
import com.ssy.lingxi.dto.response.ApplyAmountDetailTotalSunVO;
import com.ssy.lingxi.dto.response.ApplyAmountSunVO;
import com.ssy.lingxi.feign.ApplyAmountControllerFeign;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 彭冬冬
 * @version 2.0.0
 * @date 2022/3/8 14:02
 */
@Component
public class ApplyAmountControllerFeignFallback implements ApplyAmountControllerFeign {
    @Override
    public Wrapper<PageData<ApplyAmountDetailSunVO>> pageContractExecuteDetail(ApplyAmountDetailSunQueryVO queryVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    @Override
    public Wrapper<List<ApplyAmountDetailTotalSunVO>> pageContractExecuteDetailSum(ApplyAmountDetailTotalSunQueryVO queryVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    @Override
    public Wrapper<PageData<ApplyAmountSunVO>> pageListForSummaryByParty(ApplyAmountSunQueryVO queryVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    @Override
    public Wrapper<List<ApplyAmountSunVO>> listForPaySummaryByParty(ApplyAmountSunQueryVO queryVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }
}
